public class Test {
    public static void main(String[] args) {
    Animal animal1=new Animal(13,"动物a");
    Dog dog1=new Dog(3,"旺财");
    Animal dog2=new Dog(4,"小黑");
    animal1.eat();
    dog1.eat();
   dog2.eat();
    }
}
